l = list(raw_input())
l.reverse()
for c in l:
    print c
